//
//  NSObject+Model.m
//  SmallEasyLife
//
//  Created by qianfeng on 15/10/24.
//  Copyright © 2015年 GXK. All rights reserved.
//

#import "NSObject+Model.h"

@implementation NSObject (Model)


+ (id)objectWithDictionary:(NSDictionary *)dict
{
    return [[self alloc] initWithDictionary:dict];
}

- (instancetype)initWithDictionary:(NSDictionary *)dict
{
    if (self = [self init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

@end
